import javax.swing.JFrame;

public class Game01 extends JFrame{
    MyPanel mp = null;
    public static void main(String[] args) { 
        new Game01();
    }
    public Game01(){
        mp = new MyPanel();
        Thread thread = new Thread(mp);
        thread.start();
        this.add(mp);
        this.setSize(1000,750);
        this.addKeyListener(mp);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
